				{literal}
				<script type="text/javascript">
				
				function getFriends()
				{
					new Effect.Appear('ajax_main_image');
					document.getElementById('update_check').innerHTML='';
					{/literal}
					var get_user = document.getElementById('userid').value;
					xajax_getFriendsList(get_user, 'videoInviteUser', '{$aParams}', '{$sContent}', '{$sValue}');
					{literal}
					return false;
				}

				function checkEnterKey(event)
				{
					if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) 
					{
						getFriends();
						return false;
					}
					
					return false;
				}
				
				function startRoutine(iId)
				{
					{/literal}
					document.getElementById(iId).innerHTML=' <img src="design/pic/loader.gif" alt="" style="vertical-align:middle;" /> {language text="Mod_Account.processing"} ';
					{literal}
				}

        		</script>
        		{/literal}
        		<div style="padding:8px;">
				{language text="Mod_Account.ajax.username"}:

        		<input onkeydown="checkEnterKey(event);" id="userid" type="text" name="aUser[user]" value="{$aUser.user}" maxlength="25" size="20" />

				<span id="check_ajax_user"></span>
				<span id="check_username">
					<input type="button" value="{language text='Mod_Account.ajax.submit'}" name="checkUsername" style="cursor:pointer;" onclick="return getFriends();" />
					<span id="ajax_main_image" style="display:none;font-size:10pt;font-weight:bold;">
						<img src="design/pic/loader.gif" alt="" style="vertical-align:middle;" /> {language text="Mod_Account.ajax.searching"}
					</span>
				</span>
				
				<div id="update_check" style="display:none;"></div>
				<div id="user_content"></div>
				</div>